package cn._2dland.bots;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public final class Utils {
	private static String[] STATUS = {"正常", "停用", "出错"};
	private static SimpleDateFormat formater = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.CHINA);

	public static String getStatusName(int status) {
		return STATUS[status];
	}

	public static String formatTime(long time) {
		return formater.format(new Date(time));
	}
}